package com.example;

public class Major {
    private int id;
    private String name;
    private int departmentId;
    private String description;
    private String createdAt;

    public Major(int id, String name, int departmentId, String description, String createdAt) {
        this.id = id;
        this.name = name;
        this.departmentId = departmentId;
        this.description = description;
        this.createdAt = createdAt;
    }

    // Getters
    public int getId() { return id; }
    public String getName() { return name; }
    public int getDepartmentId() { return departmentId; }
    public String getDescription() { return description; }
    public String getCreatedAt() { return createdAt; }

    // Setters
    public void setId(int id) { this.id = id; }
    public void setName(String name) { this.name = name; }
    public void setDepartmentId(int departmentId) { this.departmentId = departmentId; }
    public void setDescription(String description) { this.description = description; }
    public void setCreatedAt(String createdAt) { this.createdAt = createdAt; }

    @Override
    public String toString() {
        return name;
    }
} 